package edu.washington.ling.syntric.struct.error;

public class UnreadableLineException extends Exception {
	
	private static final long serialVersionUID = 1L;
	private String line;
	private String correctFormat;
	
	public UnreadableLineException(String message, String line, String correctFormat) {
		super(message);
		this.line = line;
		this.correctFormat = correctFormat;
	}
	
	public String getLine() {
		return line;
	}

	public String getCorrectFormat() {
		return correctFormat;
	}
	
	@Override
	public String getMessage() {
		return String.format("%s\nLine: %s\nCorrect Format: %s", super.getMessage(), line, correctFormat);
	}
}
